<tr class="blocktitle">
    <td colspan="2">-- 配送方式 --</td>
  </tr>
<tr>
  <th>物流信息</th>
  <td><style>
 .wlbox{ width:100%; background:#f3f3f3; padding:2%;}
 .wlbox table{ width:100%; text-align:center;}
 .wlbox table td,.wlbox table th{ padding:5px;}
 .tianjia{ cursor:pointer; margin-top:10px; margin-left:5px; font-size:16px; font-weight:bold;}
 .shanchu{width:40px; height:20px; cursor:pointer;}
</style>
    <div class="wlbox">
      <table cellpadding="1" cellspacing="0" border="0">
        <script>
		var wllist = '($parameter[jsontype_wllist])';
		var wllistjson = eval('('+wllist+')');
		for(var o in wllistjson){  
			if(wllistjson[o][0] || wllistjson[o][1]){
				document.write('<tr>');
				document.write('<td align="left"><input type="text" name="parameter[textpara_jsontype_wllist]['+o+'][]" class="form-control" style="width:100%;" value="'+wllistjson[o][0]+'" placeholder="请输入物流名称"/></td>');
				document.write('<td align="left" width="150"><input name="parameter[textpara_jsontype_wllist]['+o+'][]" type="text" class="form-control" value="'+wllistjson[o][1]+'" placeholder="请输入配置运费"/></td>');
				document.write('<td align="left" width="50"><a class="shanchu" onclick="sc(this)">删除</a></td></tr>');
			}
		  } 
		  // js-获取JSON数组的长度
		  function getHsonLength(json){
                var jsonLength=0;
                for (var i in json) {
                    jsonLength++;
                }
                return jsonLength;
            } 
		</script>
      </table>
      <div class="tianjia"><span class="btn btn-default">点击添加</span></div>
    </div>
    <script>
	var tji = getHsonLength(wllistjson);
	$('.tianjia').click(function(e) {
		tji++;
		var html="<tr>";
		html+="<td align='left'><input type='text' name='parameter[textpara_jsontype_wllist]["+tji+"][]' class='form-control' style='width:100%;' placeholder='请输入物流名称'/></td>";
		html+="<td align='left' width='150'><input name='parameter[textpara_jsontype_wllist]["+tji+"][]' type='text' class='form-control' style='width:100%;' placeholder='请输入配置运费'/></td>";
		html+="<td align='left' width='50'><a class='shanchu' onclick=\'sc(this)\'>删除</a></td></tr>";
	   $('.wlbox table').append(html);
	}); 
  

function sc(t){
	var indexnum = $(t).parent().parent().index();
	$(" .wlbox table tr").eq(indexnum).remove();
}	
</script></td>
</tr>
<tr class="blocktitle">
    <td colspan="2">-- 积分换算比例 --</td>
  </tr>
<tr>
  <th>设置比例</th>
  <td>
  <input class="form-control" type="text" name="parameter[integralratio]" value="{$parameter[integralratio]}">
  <p class="help-block">每1元现金可兑换多少个积分</p>
  </td>
</tr>